<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]
    <script>

		function f_change(id){
			top.f_addTab(null, '修改部门', base+'/admin/rbac/editDept.aspx?type=edit&id='+id);
		}

		function f_add(){
			top.f_addTab(null, '添加部门', base+'/admin/rbac/editDept.aspx?type=add');
		}

		var grid;
		$(function(){
			grid = $("#maingrid").ligerGrid({
				columns: [

					{display: '部门ID', name: 'id', align: 'center', width: 100 },
					{display: '部门', name: 'name', align: 'center', width: 150 },
					{display: '操作', name: 'name', align: 'center', width: 100,
						render: function(row){

							var html = '<input value="修改" style="cursor:pointer" type="button" onclick="f_change('+row.id+')">';
							return html;

						}
					}
				],  pageSize:20, url: 'queryData.aspx',toolbar: {}, width: '100%', height:'100%', enabledSort: true
			});
		});

    </script>

</head>
<body style="padding:10px; overflow:hidden;">
<div id="functions">
	<div class="clearfix">
	<div style="float:right;">
		<input type="button" style="margin:10px 0;cursor:pointer" value ='添加' class="button" onclick="f_add()" />
	</div>
		</div>
</div>

<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>